home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990725-20000114 / 000091_news@columbia.edu _Fri Sep 10 13:51:15 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA03907
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 10 Sep 1999 13:51:14 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id NAA06728
  7.     for kermit.misc@watsun.cc.columbia.edu; Fri, 10 Sep 1999 13:29:30 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Re: OOP shell scripting
  11. Date: 10 Sep 1999 17:29:30 GMT
  12. Organization: Columbia University
  13. Message-ID: <7rbf5q$6i5$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@columbia.edu
  15.  
  16. In article <7r9v08$obv$1@holly.prod.itd.earthlink.net>,
  17. Kurt Harriger <kurbylogic@earthlink.net> wrote:
  18. : Hi all, looking for a better way to use OOP patterns when doing shell
  19. : scripting to make my scripts more reusable.
  20. : I was thinking some kinda . library plus a different scripting approach to
  21. : call various functions such as eval and $obj.method when calling to support
  22. : a limited polymorphic behavior.
  23. : Any one ever done anything like this with shell scripting.  Maybe
  24. : Shell scripts seem more reusable then one large binary.  Java would work
  25. : nice except that it requires the runtime be installed on many systems before
  26. : any of my libraries are useful on those systems.
  27. If you use C-Kermit 7.0:
  28.  
  29.   http://www.columbia.edu/kermit/ck70.html
  30.  
  31. as your script interpreter rather than ksh, bash, etc (don't laugh until
  32. you've looked), the basic constructs of object oriented programming (classes,
  33. containers, inheritance, semaphores, etc) are illustrated in the C-Kermit
  34. script library:
  35.  
  36.   http://www.columbia.edu/kermit/ckscripts.html
  37.  
  38. - Frank